package com.opencloud.iot.client.api;
        import com.opencloud.iot.client.model.entity.IotDayMoveResult;
        import com.opencloud.iot.client.model.entity.IotDaySleepResult;
        import com.opencloud.iot.client.model.entity.IotNStreng;
        import com.opencloud.iot.client.model.entity.IotRecorders;
        import org.springframework.web.bind.annotation.*;

        import javax.sql.rowset.serial.SerialStruct;
        import java.util.List;

/**
 * @author liuyadu
 */
public interface IotRemoteApi {

    /**
     * 获取IOT项目的服务接口
     * @param watchmac
     * @param slpstatus
     * @param thisdate
     * @return
     */
    @RequestMapping(value="/iot/daysleeplist",method= RequestMethod.GET)
    List<IotDaySleepResult> getIotDaySleepResult(
            @RequestParam(value = "watchmac",required = false) final String watchmac,
            @RequestParam(value = "slpstatus",required = false) final Integer slpstatus,
            @RequestParam(value = "thisdate",required = false) final String thisdate
    );

    /**
     *
     * @param StartTime
     * @param EndTime
     * @return
     */
    @RequestMapping(value="/api_records/list",method= RequestMethod.GET)
    List<IotRecorders> getWatchInfoList(
            @RequestParam(value ="StartTime",required = false)Long StartTime,
            @RequestParam(value ="EndTime",required = false)Long EndTime,
            @RequestParam(value ="Watchs",required = false)String Watchs
    );

    /**
     * API-获取动量数据
     * @param StartTime
     * @param EndTime
     * @param watchmac
     * @return
     */
    @RequestMapping(value="/api_nstreng/list",method= RequestMethod.GET)
    List<IotNStreng> getNStrengList(
            @RequestParam(value ="StartTime",required = false)Long StartTime,
            @RequestParam(value ="EndTime",required = false)Long EndTime,
            @RequestParam(value = "watchmac",required = false) String watchmac
    );

    @RequestMapping(value="/iot/daymovelist",method= RequestMethod.GET)
    List<IotDayMoveResult> getIotDayMoveResult(
            @RequestParam(value = "watchmac",required = false) final String watchmac,
            @RequestParam(value = "thisdate",required = false) final String thisdate
    );
}
